package com.blb.community.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.community.entity.ZyOwner;
import com.blb.community.entity.vo.ZyOwnerVo;
import com.blb.community.mapper.ZyOwnerMapper;
import com.blb.community.service.IZyOwnerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 业主  服务实现类
 * </p>
 *
 * @author 帅帅
 * @since 2022-07-02
 */
@Service
public class ZyOwnerServiceImpl extends ServiceImpl<ZyOwnerMapper, ZyOwnerVo> implements IZyOwnerService {

    @Autowired
    private ZyOwnerMapper zyOwnerMapper;
    @Override
    public IPage<ZyOwnerVo> getAllOwner(Long current,Long size,String ownerNickname, String ownerRealName, String ownerIdCard, String ownerPhoneNumber, String communityName) {
        return zyOwnerMapper.getAllOwner(new Page<>(current,size),ownerNickname,ownerRealName,ownerIdCard,ownerPhoneNumber,communityName);
    }
}
